#ifndef DATAACCESS_H
#define DATAACCESS_H

#include <QString>
#include <QList>
#include <QRandomGenerator>
#include <QIODevice>
#include <QFile>
#include <QDateTime>
#include "dataModel/BlogDetail.h"
#include "dataModel/BlogPreview.h"
#include "dataModel/BlogList.h"
#include "dataModel/Comment.h"
#include "dataModel/Appeal.h"

class DataAccess
{
public:
    // 获取首页文章列表
    static QList<BlogPreview> getBlogList();
    // 获取文章详情
    static BlogDetail getBlogDetail();
    // 获取评论列表
    static QList<Comment> getCommentList();
    // 获取申诉列表
    static QList<Appeal> getAppealList();
};

#endif // DATAACCESS_H
